package com.example.springstack.springboot.mongo.init.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author qiangfanghao
 * @date
 */
@Document(collection = Admin.CNAME)
public class Admin {

    public static final String CNAME = "admin";

    @Id
    private String id;
    /**
     * 登录账号
     */
    private String userName;

    /**
     * 昵称
     */
    private String nickName;
    /**
     * 密码
     */
    private String passWord;

    /**
     * 管理员头像
     */
    private String userProfile;

}
